﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020008E9 RID: 2281
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class HeliobusEnterBattleScRsp : IMessage<HeliobusEnterBattleScRsp>, IMessage, IEquatable<HeliobusEnterBattleScRsp>, IDeepCloneable<HeliobusEnterBattleScRsp>, IBufferMessage
	{
		// Token: 0x17001CDB RID: 7387
		// (get) Token: 0x06006634 RID: 26164 RVA: 0x001128EF File Offset: 0x00110AEF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<HeliobusEnterBattleScRsp> Parser
		{
			get
			{
				return HeliobusEnterBattleScRsp._parser;
			}
		}

		// Token: 0x17001CDC RID: 7388
		// (get) Token: 0x06006635 RID: 26165 RVA: 0x001128F6 File Offset: 0x00110AF6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return HeliobusEnterBattleScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001CDD RID: 7389
		// (get) Token: 0x06006636 RID: 26166 RVA: 0x00112908 File Offset: 0x00110B08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return HeliobusEnterBattleScRsp.Descriptor;
			}
		}

		// Token: 0x06006637 RID: 26167 RVA: 0x0011290F File Offset: 0x00110B0F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeliobusEnterBattleScRsp()
		{
		}

		// Token: 0x06006638 RID: 26168 RVA: 0x00112918 File Offset: 0x00110B18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeliobusEnterBattleScRsp(HeliobusEnterBattleScRsp other) : this()
		{
			this.eventId_ = other.eventId_;
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06006639 RID: 26169 RVA: 0x00112970 File Offset: 0x00110B70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeliobusEnterBattleScRsp Clone()
		{
			return new HeliobusEnterBattleScRsp(this);
		}

		// Token: 0x17001CDE RID: 7390
		// (get) Token: 0x0600663A RID: 26170 RVA: 0x00112978 File Offset: 0x00110B78
		// (set) Token: 0x0600663B RID: 26171 RVA: 0x00112980 File Offset: 0x00110B80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EventId
		{
			get
			{
				return this.eventId_;
			}
			set
			{
				this.eventId_ = value;
			}
		}

		// Token: 0x17001CDF RID: 7391
		// (get) Token: 0x0600663C RID: 26172 RVA: 0x00112989 File Offset: 0x00110B89
		// (set) Token: 0x0600663D RID: 26173 RVA: 0x00112991 File Offset: 0x00110B91
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x17001CE0 RID: 7392
		// (get) Token: 0x0600663E RID: 26174 RVA: 0x0011299A File Offset: 0x00110B9A
		// (set) Token: 0x0600663F RID: 26175 RVA: 0x001129A2 File Offset: 0x00110BA2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06006640 RID: 26176 RVA: 0x001129AB File Offset: 0x00110BAB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as HeliobusEnterBattleScRsp);
		}

		// Token: 0x06006641 RID: 26177 RVA: 0x001129BC File Offset: 0x00110BBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(HeliobusEnterBattleScRsp other)
		{
			return other != null && (other == this || (this.EventId == other.EventId && object.Equals(this.BattleInfo, other.BattleInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06006642 RID: 26178 RVA: 0x00112A1C File Offset: 0x00110C1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.EventId != 0U)
			{
				num ^= this.EventId.GetHashCode();
			}
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06006643 RID: 26179 RVA: 0x00112A8A File Offset: 0x00110C8A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06006644 RID: 26180 RVA: 0x00112A92 File Offset: 0x00110C92
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06006645 RID: 26181 RVA: 0x00112A9C File Offset: 0x00110C9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			if (this.EventId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.EventId);
			}
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.BattleInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06006646 RID: 26182 RVA: 0x00112B14 File Offset: 0x00110D14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.EventId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EventId);
			}
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06006647 RID: 26183 RVA: 0x00112B84 File Offset: 0x00110D84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(HeliobusEnterBattleScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.EventId != 0U)
			{
				this.EventId = other.EventId;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new SceneBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06006648 RID: 26184 RVA: 0x00112C00 File Offset: 0x00110E00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006649 RID: 26185 RVA: 0x00112C0C File Offset: 0x00110E0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 88U)
					{
						if (num != 106U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							if (this.battleInfo_ == null)
							{
								this.BattleInfo = new SceneBattleInfo();
							}
							input.ReadMessage(this.BattleInfo);
						}
					}
					else
					{
						this.EventId = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400271A RID: 10010
		private static readonly MessageParser<HeliobusEnterBattleScRsp> _parser = new MessageParser<HeliobusEnterBattleScRsp>(() => new HeliobusEnterBattleScRsp());

		// Token: 0x0400271B RID: 10011
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400271C RID: 10012
		public const int EventIdFieldNumber = 11;

		// Token: 0x0400271D RID: 10013
		private uint eventId_;

		// Token: 0x0400271E RID: 10014
		public const int BattleInfoFieldNumber = 13;

		// Token: 0x0400271F RID: 10015
		private SceneBattleInfo battleInfo_;

		// Token: 0x04002720 RID: 10016
		public const int RetcodeFieldNumber = 7;

		// Token: 0x04002721 RID: 10017
		private uint retcode_;
	}
}
